<?php echo $left ?>
<script>
$( document ).ready(function() {
	$.ajaxSetup({
		cache: false
	});
	$( '.sidebar' ).simpleSidebar({
		settings: {
			opener: '#open-sb',
			wrapper: '.wrapper',
			animation: {
				duration:0,
				easing: 'easeOutQuint'
			}
		},
		sidebar: {
			align: 'left',
			width: 214,
			closingLinks: 'a',
		}
	});
});
</script>

<div class="clear"></div>
<div  class="w640">
      <div class="yd mt20"><span class="ydtxt">公益个人中心</span>  - 修改密码</div>
      <table class="biao">
      <?php echo form_open('mobile/editpassword/info_post',array('id'=>'pwdform')) ?>
	     <tr>
		    <td class="w140 pr10">原登录密码</td>
           <td><input id="old_pwd" name="old_pwd" type="password" class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140 pr10">新登录密码</td>
	        <td><input id="pwd" name="pwd" type="password" class="input1" /><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140 pr10">新登录密码确认</td>
	        <td><input id="again_pwd" type="password" class="input1" /><b></b></td>
		 </tr>
		 <input name="action" type="hidden" value="one">
		 <tr>
		    <td colspan="2" >
		        <div class="inp360"><input class="inputt" type="submit" id="btn_pwd" value="确认申请"></div></td>
         </tr>
      </form>
	  </table>
<div class="dx"></div>
	  <div class="yd2"><span class="ydtxt">公益个人中心</span>  - 修改二级密码</div>
	  <table class="biao">
	  <?php echo form_open('mobile/editpassword/info_post',array('id'=>'spwdform')) ?>
	     <tr>
		    <td class="w140 pr10">原二级密码</td>
           <td><input id="old_spwd" name="old_pwd" type="password" class="input1"/><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140 pr10">新二级密码</td>
	        <td><input id="spwd" name="spwd" type="password" class="input1" /><b></b></td>
		 </tr>
		 <tr>
		    <td class="w140 pr10">新二级密码确认</td>
	        <td><input id="again_spwd" type="password" class="input1" /><b></b></td>
		 </tr>
		 <input name="action" type="hidden" value="two">
		 <tr>
		    <td colspan="2" >
		        <div class="inp360"><input class="inputt" type="submit" id="btn_spwd" value="确认申请"></div></td>
         </tr>
      </form>
	  </table>
</div>
<script type="text/javascript">
//一级密码修改
$('#btn_pwd').on('click',  function(event) {
	if($('#old_pwd').val() == ''){
		$('#old_pwd').next().text('请输入原密码');
		//alert('请输入原密码');
		return false;
	}else{
		$('#old_pwd').next().text('');
	}
	if($('#pwd').val() == ''){
		$('#pwd').next().text('请输入新密码');
		//alert('请输入新密码');
		return false;
	}else{
		$('#pwd').next().text('');
	}
	if($('#pwd').val() != $('#again_pwd').val()){
		$("#again_pwd").next().text('新密码两次输入不同');
		//alert('新密码两次输入不同');
		return false;
	}else{
		$('#again_pwd').next().text();
	}

	$('#pwdform').submit();
});
//二级密码修改
$('#btn_spwd').on('click',  function(event) {
	if($('#old_spwd').val() == ''){
		$('#old_spwd').next().text('请输入原密码');
		//alert('请输入原密码');
		return false;
	}else{
		$('#old_spwd').next().text('');
	}
	if($('#spwd').val() == ''){
		$('#spwd').next().text('请输入新密码');
		//alert('请输入新密码');
		return false;
	}else{
		$('#spwd').next().text('');
	}
	if($('#spwd').val() != $('#again_spwd').val()){
		$('#again_spwd').next().text('新密码两次输入不同');
		//alert('新密码两次输入不同');
		return false;
	}else{
		$('#again_spwd').next().text('');
	}

	$('#spwdform').submit();
});
</script>
<?php echo $foot ?>